<template>
	<view class="content">
		<u-notice-bar :list="notification"></u-notice-bar>
		<u-swiper :list="list" :title="true" height="300"></u-swiper>
		<u-search margin="20px 20px" height="70" search-icon-color="blue" maxlength="70" placeholder="请输入文章标题"
			v-model="searchInfo"></u-search>
		<!-- 文章信息 -->
		<pageInfo :pageInfos="pageInfos"></pageInfo>
	</view>
</template>

<script>
	import pageInfo from "../../views/pageinfo.vue";
	export default {
		components: {
			pageInfo
		},
		data() {
			return {
				pageInfos: [],
				searchInfo: '',
				notification: [
					'寒雨连江夜入吴',
					'平明送客楚山孤',
					'洛阳亲友如相问',
					'一片冰心在玉壶'
				],
				list: [{
						image: 'https://heavenpl.gitee.io/pic/images/springboot-mail.jpg',
						title: '昨夜星辰昨夜风，画楼西畔桂堂东'
					},
					{
						image: 'https://heavenpl.gitee.io/pic/images/jwt.png',
						title: '身无彩凤双飞翼，心有灵犀一点通'
					},
					{
						image: 'https://heavenpl.gitee.io/pic/images/jwtlogo.jpg',
						title: '谁念西风独自凉，萧萧黄叶闭疏窗，沉思往事立残阳'
					}
				],
			}
		},
		onShareAppMessage() {
			let title = "首页"
			return {
				title: title,
				path: '/page/index/index',
				imageUrl: 'https://heavenpl.gitee.io/pic/images/springboot-mail.jpg',

			}
		},

		onLoad() {
			this.$u.get("https://apiblog.hwawy.cn/api/listBlogs?currentPage=1&pageSize=10").then(res => {
				this.pageInfos = res.records;
			})
		},
		methods: {
			
		}
	}
</script>

<style>


</style>
